home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / pctchnqs / 1990 / number5 / l2.cod < prev    next >
Text File  |  1990-09-29  |  1KB  |  31 lines

  1. ; Code generated by Microsoft C 5.1 for inner loop of FindIDAverage.
  2.  
  3. ;|*** for (WorkingBlockCount=0;
  4. ;|***       WorkingBlockCount<BlockPointer->BlockCount;
  5. ;|***       WorkingBlockCount++, DataPointer++) {
  6.           mov     WORD PTR [bp-6],0         ;WorkingBlockCount
  7.           mov     bx,WORD PTR [bp+6]        ;BlockPointer
  8.           cmp     WORD PTR [bx+2],0
  9.           je      $FB264
  10.           mov     cx,WORD PTR [bx+2]
  11.           add     WORD PTR [bp-6],cx        ;WorkingBlockCount
  12.           mov     di,WORD PTR [bp-2]        ;IDMatchSum
  13.           mov     dx,WORD PTR [bp-4]        ;IDMatchCount
  14. $L20004:
  15. ;|*** if (DataPointer->ID == SearchedForID) {
  16.           mov     ax,WORD PTR [si]
  17.           cmp     WORD PTR [bp+4],ax        ;SearchedForID
  18.           jne     $I265
  19. ;|***             IDMatchCount++;
  20.           inc     dx
  21. ;|***            IDMatchSum += DataPointer->Value;
  22.           add     di,WORD PTR [si+2]
  23. ;|***          }
  24. ;|***       }
  25. $I265:
  26.           add     si,4
  27.           loop    $L20004
  28.           mov     WORD PTR [bp-2],di        ;IDMatchSum
  29.           mov     WORD PTR [bp-4],dx        ;IDMatchCount
  30. $FB264:
  31.